package com.ggb.reactive.repository

import com.ggb.reactive.domain.entity.Orders
import org.springframework.data.r2dbc.repository.Modifying
import org.springframework.data.r2dbc.repository.Query
import org.springframework.data.repository.reactive.ReactiveCrudRepository
import org.springframework.stereotype.Repository
import reactor.core.publisher.Flux
import reactor.core.publisher.Mono
import java.time.Instant

@Repository
interface OrderRepository : ReactiveCrudRepository<Orders, Long> {

    fun countByStatus(status: Int): Mono<Int>
    fun findOneByNumber(outTradeNo: String): Mono<Orders>


}